﻿using System.Collections.Generic;
using System.Threading.Tasks;
using TimServerSDK.Core;
using TimServerSDK.Services.Portraits.Dtos;

namespace TimServerSDK.Portraits
{
    /// <summary>
    /// 资料管理
    /// </summary>
    public interface IPortraitTimServerApi
    {
        /// <summary>
        /// 设置资料
        /// https://cloud.tencent.com/document/product/269/1640
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<TimServerResult> SetAsync(string fromAccount, Dictionary<string, string> profileItem);

        /// <summary>
        /// 设置资料
        /// </summary>
        /// <param name="fromAccount"></param>
        /// <param name="nick"></param>
        /// <returns></returns>
        Task<TimServerResult> SetAsync(string fromAccount, string nick = null, string faceUrl = null);

        /// <summary>
        /// 拉取资料
        /// https://cloud.tencent.com/document/product/269/1639
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetPortraitResultDto> GetAsync(string[] toAccount, string[] tagList);
    }
}
